﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" CodeBehind="question.aspx.cs" Inherits="GameAdmin.Pages.question" %>
<asp:Content ID="Content1" ContentPlaceHolderID="plcHolderContent" runat="server">
    <h2>Otázka</h2>

    <asp:Label ID="lblMessage" Visible="false" runat="server" />

    <div class="editor">
        <fieldset>
            <legend>Editor</legend>
            <asp:Label AssociatedControlID="txtId" Text="ID:" runat="server" /><asp:TextBox ID="txtId" ReadOnly="true" BackColor="Silver" Width="50px" runat="server" /><br />
            <asp:Label AssociatedControlID="ddlDifficulties" Text="Obtížnost:" runat="server" />
                <asp:DropDownList ID="ddlDifficulties" runat="server">
                    <asp:ListItem Text="1" Value="1" Selected="True" />
                    <asp:ListItem Text="2" Value="2" />
                    <asp:ListItem Text="3" Value="3" />
                    <asp:ListItem Text="4" Value="4" />
                </asp:DropDownList>
                <br />
            <asp:Label AssociatedControlID="txtText" Text="Text:" runat="server" /><asp:TextBox ID="txtText" TextMode="MultiLine" runat="server" />
                <asp:RequiredFieldValidator ID="req1" ControlToValidate="txtText" ErrorMessage="Nevyplnili jste text otázky!" Display="Dynamic" runat="server" />
        </fieldset>

        <asp:Button ID="btnSave" Text="Uložit změny" runat="server" />
    </div>

    <asp:HyperLink NavigateUrl="~/questions" Text="Zpět na seznam otázek" runat="server" />
</asp:Content>
